import http from "~/utils/http";
export const getMajorList = data => {
  return http({
    url: "major/list",
    method: "post",
    data
  });
};

export const getMajorTree = data => {
  return http({
    url: "client/major/tree",
    method: "get"
  });
};

export const getMajorCourse = data => {
  return http({
    url: "client/major/list",
    method: "post",
    data
  });
};
